<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html,
        body,
        #app {
            height: 100%;
            width: 100%;
            margin: 0;
            padding: 0;
            position: absolute;
        }
        
        #title {
            height: 50px;
            margin: 0px;
            background-color: rgb(35, 137, 255);
            font-size: 25px;
            color: floralwhite;
            text-align: center;
            line-height: 200%;
        }
        
        .shop {
            display: flex;
            bottom: 50px;
            border: 2px solid #aaa;
            height: 120px;
        }
        
        .shop img {
            width: 100px;
            height: 100px;
            position: relative;
            top: 10%;
            left: 10%;
            border-radius: 5px;
        }
        
        .shop .script {
            position: relative;
            left: 5%;
        }
        
        .foot {
            bottom: 0;
            height: 50px;
            background: lightcoral;
        }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <div id="title">
            商家列表
        </div>
        <div class="content">
            <div class="shop" v-for="con in content">
                <div class="img">
                    <img :src="con.img">
                </div>
                <div class="script">
                    <h3 class="name" style="height: 20px;">
                        {{con.name}}
                    </h3>
                    <div style="font-size: 14px;word-spacing:-50px;">
                        {{con.trait1}}
                        <br> {{con.trait2}}
                    </div>
                </div>
            </div>

        </div>
        <div class="foot">

        </div>
    </div>
    <script>
        const vm = new Vue({
            el: "#app",
            data: {
                content: [{
                    "img": "./elm_demo/img/sp03.png",
                    "name": "万家饺子(软件园E18店)",
                    "trait1": "15元起送|3元配送费",
                    "trait2": "各种饺子炒菜",
                }, {
                    "img": "./elm_demo/img/sp04.png",
                    "name": "小锅饭豆腐馆(全运路店)",
                    "trait1": "15元起送|3元配送费",
                    "trait2": "特色美食",
                }, {
                    "img": "./elm_demo/img/sp05.png",
                    "name": "麦当劳麦乐送(全运路店)",
                    "trait1": "15元起送|3元配送费",
                    "trait2": "汉堡薯条",
                }, {
                    "img": "./elm_demo/img/sp07.png",
                    "name": "米糠拌饭(全运路店)",
                    "trait1": "15元起送|3元配送费",
                    "trait2": "特色米糠",
                }, {
                    "img": "./elm_demo/img/sp07.png",
                    "name": "米糠拌饭(全运路店)",
                    "trait1": "800元起送|30元配送费",
                    "trait2": "特色米糠",
                }, {
                    "img": "./elm_demo/img/sp07.png",
                    "name": "米糠拌饭(全运路店)",
                    "trait1": "70元起送|6元配送费",
                    "trait2": "特色米糠",
                }]
            }
        });
    </script>
</body>


</html>